<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./bower_components/vue/dist/vue.js"></script>
    <script src="./bower_components/moment/min/moment-with-locales.js"></script>
    <script src="./js/index.js"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item in  messages">
                {{item.content}} {{item.time}}
            </li>
        </ul>
        <input placeholder="请输入你的留言" type="text" v-model="input">
        <button @click="sendMessage">发送</button>
    </div>
</body>
</html>